﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/FarmMaster.master" AutoEventWireup="true" CodeFile="ViewTrain.aspx.cs" Inherits="Web_ViewTrain" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 138px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="main">
		<div class="left">
			<div class="left1">
				<div id="PARENT">
					<ul	id="navv">
						<li class="first"><a>培训通知</a>
						</li>
                         <li><a href="listTrain.aspx">培训通知</a></li>   
					</ul>
				</div>
			</div>
			
			<div class="left2">
				<div class="tle">
					<span class="text1">最新动态</span>
				</div>
				<div class="tents">
					<ul style=" padding-top:5px;">
						<asp:Repeater ID="Repeater3" runat="server">
                            <ItemTemplate>
                                <li><a href='<%=Toolkit.ApplicationRoot %>/Html/<%#Eval("url") %>'><%#Eval("Title").ToString().Length>12?Eval("Title").ToString().Substring(0,11)+"...":Eval("Title") %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
					</ul>
				</div>
			</div>
		</div>
		<div class="right">
			<div class="headline">
				本次开设课程为：<%=t.Kind %>-<%=t.Subject %>-<%=t.Course %>
			</div>
			<div class="content" style="border:1px solid #ccc;" >
                <table cellpadding="0" cellspacing="1">
                    <tr>
                        <td class="style1">
                            &nbsp;
                            班级名称：</td>
                        <td>
                            &nbsp;<%=t.Name %>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            &nbsp;
                            举办单位：</td>
                        <td>
                            &nbsp;<%=t.Belong %>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1"> &nbsp;
                            培训时间：&nbsp;
                        </td>
                        <td>
                            &nbsp;<%=string.Format("{0:yyyy/MM/dd HH:mm}",t.Started) %>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1"> &nbsp;
                            培训地点：</td>
                        <td>
                            &nbsp;<%=t.Address %></td>
                    </tr>
                    <tr>
                        <td class="style1"> &nbsp;
                            课程信息：</td>
                        <td>
                            &nbsp;<%=t.Memo %></td>
                    </tr>
                    <tr>
                        <td class="style1"> &nbsp;
                            授课教师：</td>
                        <td>
                            &nbsp;<%=t.Teacher.Name %></td>
                    </tr>
                    <tr>
                        <td class="style1"> &nbsp;
                            人数：</td>
                        <td>
                            &nbsp;<%=t.Amount %></td>
                    </tr>
                    <%
                        if (t.Amended != null)
                        { 
                    %>
                        <tr>
                            <td class="style1"> &nbsp;
                                更改内容：</td>
                            <td>
                                &nbsp;<%=t.Amend %></td>
                        </tr>
                    <%        
                        }     
                    %>
                    
                    </table>

                    <%if(t.Started.CompareTo(DateTime.Now)>0){ %>
                        <span style=" width:350px; height:40px; padding-left:300px; display:block;">
                            <a href="Join.aspx?tid=<%=t.ID %>">
                                <asp:Image ID="Image1" runat="server" SkinID="TrainImage" />
                            </a>
                        </span>
                    <%} %>
			</div>
		</div>
	</div>
</asp:Content>

